package com.kfpanda.spring.batch.incrementer.h2;

import org.springframework.jdbc.core.BeanPropertyRowMapper;
import org.springframework.jdbc.core.RowMapper;

public class H2IncrementBeanRowMapper extends BeanPropertyRowMapper<H2IncrementBean> implements RowMapper<H2IncrementBean>{
	
	public H2IncrementBeanRowMapper(){
		this.initialize(H2IncrementBean.class);
	}
//	@Override
//	public H2IncrementBean mapRow(ResultSet rs, int rowNum) throws SQLException {
//		H2IncrementBean incrementBean = new H2IncrementBean();
//		incrementBean.setId(rs.getObject("ID"));
//		incrementBean.setSaveTime(rs.getDate("SAVETIME"));
//		incrementBean.setUpdateTime(rs.getDate("UPDATETIME"));
//		incrementBean.setBeforeIncrementer(rs.getString("BEFOREINCREMENTER"));
//		incrementBean.setIncrementer(rs.getString("INCREMENT"));
//		incrementBean.setIncremName(rs.getString("INCREMNAME"));
//		incrementBean.setIncremType(rs.getString("INCREMTYPE"));
//		return incrementBean;
//	}

}
